import Vue from 'vue'
import Router from 'vue-router'
import homeRoutes from './home'
// import settingRoutes from './setting'
// import appointmentRoutes from './appointment'
import mainFnRoutes from './mainFn'
// import payRoutes from './pay'
// import doctorRoutes from './doctor'
// import reportRoutes from './report'
// import thirdPartyRoutes from './thirdParty'
// import newsRoutes from './news'
// import inpatientCareRoutes from './inpatientCare'
// import questionnaireRoutes from './questionnaire'
// import aboutRoutes from './about'
Vue.use(Router)

export default new Router({
  routes: [
    ...homeRoutes,
    // ...settingRoutes,
    // ...appointmentRoutes,
    // ...aboutRoutes,
    // ...inpatientCareRoutes,
    // ...questionnaireRoutes,
    ...mainFnRoutes,
    {
    // 404 page
      path: '*',
      component: resolve => require(['../components/NotFound'], resolve)
    }
  ]
})
